import request from "./request"

export const getLocalCityApi = () => {
  return request({
    url: "/ip?ip=171.43.210.132&key=17bb9b851c7c7852ff232bc2860de3e2",
    method:"GET",
  })
}

export const getCityAdcodeApi = (city) => {
  return request({
    url: `/geocode/geo?address=${city}&key=17bb9b851c7c7852ff232bc2860de3e2`,
    method:"GET",
  })
}

export const getCityWeatherApi = (adcode,ab) => {
  return request({
    url: `/weather/weatherInfo?city=${adcode}&key=17bb9b851c7c7852ff232bc2860de3e2&extensions=${ab}`,
    method:"GET",
  })
}